#ifndef TIMERS_H
#define TIMERS_H

#ifndef F_CPU
#define F_CPU 8000000UL
#endif

#include <avr/io.h>

#define T2_TASK_F 5
#define T2_HCNT_MAX F_CPU/(8*256*T2_TASK_F)

/* High Register for Counter TCNT2 */
extern volatile uint16_t T2_HCOUNTER; 
/* Periodic task flag */
extern volatile uint8_t T2_TASK_FLAG;

/* Function Prototypes */
extern void timer2_init(void);

#endif /* TIMERS_H */
